package com.taotao.service.impl;

import com.taotao.common.TaotaoResult;
import com.taotao.mapper.TbItemDescMapper;
import com.taotao.pojo.TbItemDesc;
import com.taotao.service.TbItemDescService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TbItemDescServiceImpl implements TbItemDescService {

    @Autowired
    private TbItemDescMapper tbItemDescMapper;

    /**
     * 查询商品描述
     * @param itemId
     * @return
     */
    @Override
    public TaotaoResult getItemDesc(long itemId) {
        TbItemDesc tbItemDesc = tbItemDescMapper.selectByPrimaryKey(itemId);
        return TaotaoResult.build(200, "", tbItemDesc);

    }
}
